<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BookList extends Model
{
    protected $guarded = [];

    public $timestamps = false;

    public function books()
    {
        return $this->belongsToMany(Book::class,"book_list_book_relations","book_list_id","book_id")->withPivot('message');;
    }


}
